EMT Practice Test

1. Question Content...


Question List

Question1: An Ansible variable file contains the following content:
myapp:
option1: one
Which of the following strings can be used to reference the defined variable? (Choose two correct answers).

Question2: Which sections can exist in a Logstash configuration file? (Choose three correct answers.)

Question3: How is cloud-init integrated with a managed system image?

Question4: If a Dockerfilereferences the container's base image without a specific version tag, which tag of that image is used to create the container?

Question5: Which of the following sections must exist in a Packer template?

Question6: A service should be provided to arbitrary clients on the Internet using HTTPS. Any standard client on the Internet should be able to consume the service without further configuration. Which of the following approaches can be used to implement these requirements? (Choose three correct answers.)

Question7: Which of the following gitcommands is used to manage files in a repository? (Choose two correct answers.)

Question8: Which configuration option in the Ansible inventory is issued control privilege escalation of the remote user?

Question9: Which Ansible keyword is used in a playbook to store the result (i.e. return code) of a task in a variable?

Question10: What statement is true regarding the Swarm service created by the following command?
docker service create --name myweb --network webnet --mode global nginx

Question11: The following command is issued on two docker nodes:
docker network create --driver bridge isolated_nw
Afterwards, one container is started at each node with the parameter --network=isolated_nw. It turns out that the containers can not interact with each other. What must be done in order to allow the containers to interact with each other? (Choose two correct answers.)

Question12: Which security issues exist for most publicly available Vagrant boxes? (Choose three correct answers.)

Question13: Which of the following commands lists the cookbooks available on a Chef server?

Question14: What does the command packer validate template.jsondo?

Question15: A recently installed application writes log data to /opt/app/log/info.log. If Filebeat is already installed and set up for communication with a remote Logstash, what has to be done in order to submit the log data of the new application to Logstash?

Question16: Which of the following statements are true about Jenkins? (Choose two correct answers.)

Question17: What implications does container virtualization have for DevOps? (Choose two answers.)

Question18: Which of the following statements is true about load balancers?

Question19: Which of the following statements describes the principal concept behind test driven development?

Question20: Which Ansible modules can be used to change the contents of a file? (Choose three correct answers.)

Question21: Which of the following Ansible tasks copies the file example.txtto a manage system?

Question22: How does Prometheus gather information about monitored hosts and services?

Question23: The file index.php, which is being maintained in a git repository, was changed locally and contains an error. If the error has not been committed to the repository yet, which of the following gitcommands reverts the local copy of index.phpto the latest committed version in the current branch?

Question24: Which of the following HTTP methods are used by REST? (Choose three correct answers.)

Question25: Which section of the Prometheus configuration defines which nodes are monitored?

Question26: Which of the following elements are presents in a Vagrant box file? (Choose two correct answers.)

Question27: How does Vagrant run virtual machines?

Question28: A Dockerfilecontains the statements:
COPY data/ /data/
VOLUME /data
What happens when the resulting container is started without any additional volume configuration?
(Choose two correct answers.)

Question29: What must be the first line of a plain text user-data configuration containing YAML configuration for cloud- init?

Question30: Which of the log messages below matches the following Logstash grok filter?
grok {
match => ["message", "%{SYSLOGBASE} new node %{IPORHOST:node}" ]
}

Question31: Consider the following Kubernetes Deployment:

With the ReplicaSet:

And the Pods:

What happens if one of the Pods is terminated with the command kubect1 pod delete?

Question32: Which of the following information is contained in the output of git status? (Choose three correct answers.)

Question33: What is the Puppet equivalent to an Ansible Playbook called?

Question34: Which of the following mechanisms are used for service discovery in a container environment? (Choose two correct answers.)

Question35: Which of the following functions are provided by the Ansible aptmodule? (Choose two correct answers.)